<?php
declare (strict_types = 1);
namespace app\admin\controller;
use think\facade\Db;
use think\facade\View;

class Index
{
    public function index()
    {
        return view();
    }
    public function info()
    {
        $list=Db::name('program')->where('id',1)->find();
        View::assign('list',$list);
        return view();
    }
    public function pass()
    {
        return View::fetch();
    }
    public function adv()
    {
        $list=Db::name('banner')->select()->toArray();
        View::assign('list',$list);
//        return View::fetch();
        return view();
    }
}
